Easy to Create, Easy to Change - Easy to use!

Command::

Procedural Commands



Parameters


Returns/Result


Examples


Reference

Procedural Commands

Type

Concept

Purpose

The DQL Procedural commands are used to organize and control the flow of actions in a procedure.

Usage

Procedural commands can be used in both Processing procedures and Control procedures.

Example

case ( spellweekday ( weekday( current date) )

value "MONDAY" :

run procedure "LAST WEEK SUMMARY" .

value "FRIDAY" :

run procedure "PRINT RESERVATIONS" .

others :

call menu "MAIN MENU" .

end

 

This script tells DataEase: (1) If the current date is a Monday, run the LAST WEEK SUMMARY procedure, (2) if the current date is a Friday, run the PRINT RESERVATIONS procedure, and (3) if the current date is any other day of the week, display the MAIN MENU.

See Also


On the forum about Procedural Commands

On the blog about Procedural Commands